import React, {Component} from 'react'
import UserInfo from './components/userInfo'
import {Dimensions, StyleSheet, View} from 'react-native'
import {connect} from "react-redux";

const {height, width} = Dimensions.get('window');

class My extends Component {
    render() {
        return (
            <View style={styles.container}>
                <UserInfo/>
            </View>
        )
    }
}

export default connect(
    (state) => {
        return {
            mainNavigation: state.mainNavigation
        }
    }
)(My)

const styles = StyleSheet.create({
    container: {
        flex: 1,
    },
    statusBar: {
        backgroundColor: '#fff',
        height: height * 0.081939799,
    },
    navBar: {
        backgroundColor: '#fff',
    },
    title: {
        flex: 1,
        textAlign: 'center',
        color: '#rgba(0, 0, 0, 0.65)',
    },
    buttonText: {
        color: '#rgba(0, 0, 0, 0.45)',
    },
})

